package com.jsj.servlet.ch6;

public class ProductBean {

	private int num;
	private float price;	
	
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public double getTotalPrice() {
		return this.price*this.num;
	}
	
	
	
	
	
}
